package com.base.commonlib.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Transient;

import java.util.List;

/**
 * 现场检查上报实体
 * Created by weikailiang on 2019/11/14.
 */
@Entity
public class FieldInspectionEntity {
    @org.greenrobot.greendao.annotation.Id
    private Long _Id;
    private String localId;//本地关联ID
    private String login_user_id;//当前登录人ID
    private Integer isOther;

    private String id;

    private String enterpriseId;

    private String enterpriseName;

    private String enterpriseAddress;

    private String legalRepresentative;

    private String enterprisePhone;


    private String checkUpStartTime;

    private String checkUpEndTime;

    private String checkUpPlace;

    private String superviseTypeName;
    private String longitude; // 经度

    private String latitude; // 纬度
    private String checkCode;//编号
    private String enterpriseTypeName;
    private String districtTown;
    private Integer isOutTime;



    public Integer getIsOther() {
        return isOther;
    }

    public void setIsOther(Integer isOther) {
        this.isOther = isOther;
    }

    public String getDistrictTown() {
        return districtTown;
    }

    public void setDistrictTown(String districtTown) {
        this.districtTown = districtTown;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getEnterpriseTypeName() {
        return enterpriseTypeName;
    }

    public void setEnterpriseTypeName(String enterpriseTypeName) {
        this.enterpriseTypeName = enterpriseTypeName;
    }

    private boolean isUp;

    @Transient
    private List<FieldUserEntity> fieldUserRequestList;

    private String superviseType;

    private String enterpriseType;

    private String dangerNum;
    @Transient
    private List<FieldAttachmentEntity> attachmentRequestList;
    @Transient
    private List<CheckRecordEntity> checkRecordRequestList;



    @Generated(hash = 2144628743)
    public FieldInspectionEntity(Long _Id, String localId, String login_user_id,
            Integer isOther, String id, String enterpriseId, String enterpriseName,
            String enterpriseAddress, String legalRepresentative, String enterprisePhone,
            String checkUpStartTime, String checkUpEndTime, String checkUpPlace,
            String superviseTypeName, String longitude, String latitude, String checkCode,
            String enterpriseTypeName, String districtTown, Integer isOutTime, boolean isUp,
            String superviseType, String enterpriseType, String dangerNum) {
        this._Id = _Id;
        this.localId = localId;
        this.login_user_id = login_user_id;
        this.isOther = isOther;
        this.id = id;
        this.enterpriseId = enterpriseId;
        this.enterpriseName = enterpriseName;
        this.enterpriseAddress = enterpriseAddress;
        this.legalRepresentative = legalRepresentative;
        this.enterprisePhone = enterprisePhone;
        this.checkUpStartTime = checkUpStartTime;
        this.checkUpEndTime = checkUpEndTime;
        this.checkUpPlace = checkUpPlace;
        this.superviseTypeName = superviseTypeName;
        this.longitude = longitude;
        this.latitude = latitude;
        this.checkCode = checkCode;
        this.enterpriseTypeName = enterpriseTypeName;
        this.districtTown = districtTown;
        this.isOutTime = isOutTime;
        this.isUp = isUp;
        this.superviseType = superviseType;
        this.enterpriseType = enterpriseType;
        this.dangerNum = dangerNum;
    }

    @Generated(hash = 982592975)
    public FieldInspectionEntity() {
    }


    public Integer getIsOutTime() {
        return isOutTime;
    }

    public void setIsOutTime(Integer isOutTime) {
        this.isOutTime = isOutTime;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getSuperviseTypeName() {
        return superviseTypeName;
    }

    public void setSuperviseTypeName(String superviseTypeName) {
        this.superviseTypeName = superviseTypeName;
    }

    public boolean isUp() {
        return isUp;
    }

    public void setUp(boolean up) {
        isUp = up;
    }

    public String getLocalId() {
        return localId;
    }

    public void setLocalId(String localId) {
        this.localId = localId;
    }

    public String getLogin_user_id() {
        return login_user_id;
    }

    public void setLogin_user_id(String login_user_id) {
        this.login_user_id = login_user_id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(String enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    public String getEnterpriseAddress() {
        return enterpriseAddress;
    }

    public void setEnterpriseAddress(String enterpriseAddress) {
        this.enterpriseAddress = enterpriseAddress;
    }

    public String getLegalRepresentative() {
        return legalRepresentative;
    }

    public void setLegalRepresentative(String legalRepresentative) {
        this.legalRepresentative = legalRepresentative;
    }

    public String getEnterprisePhone() {
        return enterprisePhone;
    }

    public void setEnterprisePhone(String enterprisePhone) {
        this.enterprisePhone = enterprisePhone;
    }

    public String getCheckUpStartTime() {
        return checkUpStartTime;
    }

    public void setCheckUpStartTime(String checkUpStartTime) {
        this.checkUpStartTime = checkUpStartTime;
    }

    public String getCheckUpEndTime() {
        return checkUpEndTime;
    }

    public void setCheckUpEndTime(String checkUpEndTime) {
        this.checkUpEndTime = checkUpEndTime;
    }

    public String getCheckUpPlace() {
        return checkUpPlace;
    }

    public void setCheckUpPlace(String checkUpPlace) {
        this.checkUpPlace = checkUpPlace;
    }

    public List<FieldUserEntity> getFieldUserRequestList() {
        return fieldUserRequestList;
    }

    public void setFieldUserRequestList(List<FieldUserEntity> fieldUserRequestList) {
        this.fieldUserRequestList = fieldUserRequestList;
    }

    public String getSuperviseType() {
        return superviseType;
    }

    public void setSuperviseType(String superviseType) {
        this.superviseType = superviseType;
    }

    public String getEnterpriseType() {
        return enterpriseType;
    }

    public void setEnterpriseType(String enterpriseType) {
        this.enterpriseType = enterpriseType;
    }

    public String getDangerNum() {

        if (dangerNum == null){
            return "0";
        }else {
            return dangerNum;
        }
    }

    public void setDangerNum(String dangerNum) {
        this.dangerNum = dangerNum;
    }

    public List<FieldAttachmentEntity> getAttachmentRequestList() {
        return attachmentRequestList;
    }

    public void setAttachmentRequestList(List<FieldAttachmentEntity> attachmentRequestList) {
        this.attachmentRequestList = attachmentRequestList;
    }

    public List<CheckRecordEntity> getCheckRecordRequestList() {
        return checkRecordRequestList;
    }

    public void setCheckRecordRequestList(List<CheckRecordEntity> checkRecordRequestList) {
        this.checkRecordRequestList = checkRecordRequestList;
    }

    public boolean getIsUp() {
        return this.isUp;
    }

    public void setIsUp(boolean isUp) {
        this.isUp = isUp;
    }

    public Long get_Id() {
        return this._Id;
    }

    public void set_Id(Long _Id) {
        this._Id = _Id;
    }
}
